mag_writemsg(const char * const buf)
{
unsigned int osum = mag_checksum(buf);
- int retry_cnt = 20;
+ int retry_cnt = 5;
int i;
char obuf[1000];
magfile_in = xfopen(portname, "rb", MYNAME);
- is_file = !isatty(fileno(magfile_in)) || explorist;
+ is_file = (0 == strcmp(portname,"-")) || !isatty(fileno(magfile_in)) || explorist;
if (is_file) {
icon_mapping = map330_icon_table;
mag_cleanse = m330_cleanse;
}
#else
magfile_out = xfopen(portname, "w+b", MYNAME);
- is_file = !isatty(fileno(magfile_out)) || explorist;
+ is_file = (0 == strcmp(portname,"-")) || !isatty(fileno(magfile_out)) || explorist;
#endif
if (!mkshort_handle) {